cmake_minimum_required(VERSION 2.8)
project(svar_orbslam3)

include(cmake/PICMake.cmake)
set(CMAKE_CXX_STANDARD 11)
if(NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE Release)
endif()

INCLUDE_DIRECTORIES(src . src/CameraModels)

pi_add_target(svar_orbslam3 SHARED src REQUIRED System Eigen3 OpenCV G2O LTO)

pi_report_target()

# Now do make install
pi_install(TARGETS svar_orbslam3)
